package com.tongzhan.entity.party;

import com.tongzhan.annotation.ColumnDoc;
import com.tongzhan.annotation.PrimaryKey;
import com.tongzhan.annotation.TableDoc;
import com.tongzhan.base.BaseModel;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 评论表
 *
 * @author hongjianbin
 * @date 2020/7/13
 */
@TableDoc(table = "t_discuss",desc = "评论表")
@Data
@Document(collection = "t_discuss")
public class Discuss extends BaseModel {
    @PrimaryKey
    @ColumnDoc("主键id")
    private String did;//评论id

    @ColumnDoc("被评论参政议政详情id")
    private String discuss_comeid;//被评论参政议政详情id

    @ColumnDoc("评论者id")
    private String discuss_person_id;//评论者id

    @ColumnDoc("评论者名称")
    private String username;//评论者名称

    @ColumnDoc("评论内容")
    private String discuss_content;//评论内容

    @ColumnDoc("评论图片")
    private String discuss_pic;//评论图片

    @ColumnDoc("删除")
    private Integer is_del;//删除

    @ColumnDoc("评论时间")
    private Date discuss_time;//评论时间

    @ColumnDoc("类型 1是党派 2是侨台 3是乡贤")
    private Integer type;//类型 1是党派 2是侨台 3是乡贤
}
